﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/Site.Master" AutoEventWireup="true" CodeBehind="FunctionGroup.aspx.cs" Inherits="Web.Pages.FunctionGroup" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeaderControl" runat="server">
    <%@ Register src="../UserControls/ucAccessControlToolbar.ascx" tagname="AccessControlToolbar" tagprefix="Toolbar" %>   
     <%@ Register TagPrefix="dx" Namespace="DevExpress.Web.ASPxPopupControl" Assembly="DevExpress.Web.v13.1, Version=13.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" %>    
    <%@ Register TagPrefix="dx" Namespace="DevExpress.Web.ASPxPanel" Assembly="DevExpress.Web.v13.1, Version=13.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" %>
    <%@ Register Src="~/Modal/FunctionGroupModal.ascx" TagPrefix="Toolbar" TagName="FunctionGroupModal" %>
    <%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dx" %>
    <%@ Register assembly="DevExpress.Web.v13.1, Version=13.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxEditors" tagprefix="dx" %>
    <script type="text/javascript">
         // <![CDATA[

         // ]]> 
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentControl" runat="server">
    <div>
        <div class="header">
            <Toolbar:AccessControlToolbar ID="AccessToolbar" runat="server" />
        </div>
        <div class="content">
            <table>
                <tr>
                    <td class="right" style="white-space: nowrap">
                        <asp:Label ID="lbApplication" runat="server" Text='<%$ Resources:Resource, Application %>'></asp:Label> :</td>
                    <td class="left">
                        <asp:TextBox ID="txApplication" runat="server"></asp:TextBox></td>
                </tr>
            </table>
        </div>
        <div class="result">
            <dx:ASPxGridView ID="grvResult" ClientInstanceName="grvResult" runat="server" AutoGenerateColumns="False" Width="100%" >
                <Columns>
                    <dx:GridViewDataColumn  VisibleIndex="0">
                        <HeaderTemplate>
                            <dx:ASPxCheckBox ID="chk" runat="server"></dx:ASPxCheckBox>
                        </HeaderTemplate>
                        <HeaderStyle VerticalAlign="Middle" HorizontalAlign="Center" ></HeaderStyle>
                        <DataItemTemplate>
                            <dx:ASPxCheckBox ID="chk" runat="server"></dx:ASPxCheckBox>
                        </DataItemTemplate>
                        <CellStyle HorizontalAlign="Center" VerticalAlign="Middle" ></CellStyle>
                    </dx:GridViewDataColumn>
                    <dx:GridViewDataTextColumn Caption="No" FieldName="No" VisibleIndex="1">
                         <HeaderTemplate>
                            <dx:ASPxLabel ID="lbNo" runat="server" Text='<%$ Resources:Resource, No %>'></dx:ASPxLabel>
                        </HeaderTemplate>
                        <HeaderStyle VerticalAlign="Middle" HorizontalAlign="Center" ></HeaderStyle>
                    </dx:GridViewDataTextColumn>
                    <dx:GridViewDataTextColumn Caption="Application" VisibleIndex="2">
                         <HeaderTemplate>
                            <dx:ASPxLabel ID="lbApplication" runat="server" Text='<%$ Resources:Resource, Application %>'></dx:ASPxLabel>
                        </HeaderTemplate>
                        <HeaderStyle VerticalAlign="Middle" HorizontalAlign="Center" ></HeaderStyle>
                    </dx:GridViewDataTextColumn>
                    <dx:GridViewDataTextColumn Caption="Group" FieldName="Group" VisibleIndex="3">
                         <HeaderTemplate>
                            <dx:ASPxLabel ID="lbGroup" runat="server" Text='<%$ Resources:Resource, Group %>'></dx:ASPxLabel>
                        </HeaderTemplate>
                        <HeaderStyle VerticalAlign="Middle" HorizontalAlign="Center" ></HeaderStyle>
                    </dx:GridViewDataTextColumn>
                    <dx:GridViewDataTextColumn Caption="Centre" FieldName="Centre" VisibleIndex="4">
                         <HeaderTemplate>
                            <dx:ASPxLabel ID="lbCentre" runat="server" Text='<%$ Resources:Resource, Centre %>'></dx:ASPxLabel>
                        </HeaderTemplate>
                        <HeaderStyle VerticalAlign="Middle" HorizontalAlign="Center" ></HeaderStyle>
                    </dx:GridViewDataTextColumn>
                    <dx:GridViewDataTextColumn Caption="Remark" FieldName="Remark" VisibleIndex="5">
                         <HeaderTemplate>
                            <dx:ASPxLabel ID="lbRemark" runat="server" Text='<%$ Resources:Resource, Remark %>'></dx:ASPxLabel>
                        </HeaderTemplate>
                        <HeaderStyle VerticalAlign="Middle" HorizontalAlign="Center" ></HeaderStyle>
                    </dx:GridViewDataTextColumn>
                </Columns>
            </dx:ASPxGridView>
        </div>
        <div style="display: block;">
            <dx:ASPxPopupControl ID="pcModal"  CssClass="popup" runat="server" CloseAction="CloseButton" Modal="True"
                PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" ClientInstanceName="pcModal"
                HeaderText="" AllowDragging="True" PopupAnimationType="None" EnableViewState="False">
                <ContentCollection>
                    <dx:PopupControlContentControl CssClass="popup" ID="PopupControlContentControl1" runat="server">
                    <dx:ASPxPanel ID="palModal"  CssClass="popup"  runat="server" DefaultButton="btOK">
                        <PanelCollection>
                            <dx:PanelContent ID="PanelContent1" runat="server">
                                <Toolbar:FunctionGroupModal runat="server" id="FunctionGroupModal" />
                            </dx:PanelContent>
                        </PanelCollection>
                    </dx:ASPxPanel>
                    </dx:PopupControlContentControl>
                </ContentCollection>
                </dx:ASPxPopupControl>
        </div>
    </div>
</asp:Content>
